ostree.git
14 years agocore: Fix build with glib 2.30
Colin Walters [Mon, 14 Nov 2011 20:26:45 +0000 (15:26 -0500)]
core: Fix build with glib 2.30

14 years agopull: Fix iteration over directories
Colin Walters [Mon, 14 Nov 2011 20:13:20 +0000 (15:13 -0500)]
pull: Fix iteration over directories

14 years agocore: Fix uninitialized variable
Colin Walters [Mon, 14 Nov 2011 20:09:00 +0000 (15:09 -0500)]
core: Fix uninitialized variable

14 years agocore: Support being built without libsoup-gnome
Colin Walters [Mon, 14 Nov 2011 20:08:09 +0000 (15:08 -0500)]
core: Support being built without libsoup-gnome

While bootstrapping gnomeos, it's really handy if we can be built
without pull support, because libsoup-gnome pulls in a huge set of
dependencies.

14 years agognomeos: Some yocto work
Colin Walters [Sun, 13 Nov 2011 23:53:14 +0000 (18:53 -0500)]
gnomeos: Some yocto work

14 years agognomeos: Initial work on switching to Yocto
Colin Walters [Sun, 13 Nov 2011 00:21:10 +0000 (19:21 -0500)]
gnomeos: Initial work on switching to Yocto

14 years agoMove debian based bits to debian/ subdirectory
Colin Walters [Sat, 12 Nov 2011 22:47:12 +0000 (17:47 -0500)]
Move debian based bits to debian/ subdirectory

This is in preparation for introducing a Yocto-based variant.

14 years agoSwitch to using explicit WARN_CFLAGS
Colin Walters [Fri, 11 Nov 2011 11:53:44 +0000 (06:53 -0500)]
Switch to using explicit WARN_CFLAGS

The rationale is documented well in the automake manual.

14 years agoosbuild: Version built artifacts
Colin Walters [Fri, 11 Nov 2011 11:44:22 +0000 (06:44 -0500)]
osbuild: Version built artifacts

14 years agoosbuild: Add some prototype python scripts
Colin Walters [Fri, 11 Nov 2011 03:12:26 +0000 (22:12 -0500)]
osbuild: Add some prototype python scripts

14 years agoREADME: Link to schroot and git-annex
Colin Walters [Thu, 10 Nov 2011 20:21:28 +0000 (15:21 -0500)]
README: Link to schroot and git-annex

14 years agoSwitch to LGPLv2+ for most code
Colin Walters [Thu, 10 Nov 2011 18:17:04 +0000 (13:17 -0500)]
Switch to LGPLv2+ for most code

Since we're making a shared library, it should be usable by non-GPL
apps.

To allow more code sharing between the core and the tests, move them
to the LGPLv2+ too.

A few bits of test and other code are still GPL.  See the new COPYING
file for more information.

14 years agoRename parallel-debian/ to gnomeos/
Colin Walters [Thu, 10 Nov 2011 17:07:15 +0000 (12:07 -0500)]
Rename parallel-debian/ to gnomeos/

14 years agoparallel-debian: Ensure we're not running make-base as root actually
Colin Walters [Thu, 10 Nov 2011 16:56:34 +0000 (11:56 -0500)]
parallel-debian: Ensure we're not running make-base as root actually

14 years agoparallel-debian: Support being run as non-root
Colin Walters [Thu, 10 Nov 2011 16:52:48 +0000 (11:52 -0500)]
parallel-debian: Support being run as non-root

14 years agoparallel-debian: Remove accidentally committed file
Colin Walters [Thu, 10 Nov 2011 16:36:08 +0000 (11:36 -0500)]
parallel-debian: Remove accidentally committed file

14 years agoREADME.md: Link to IPS
Colin Walters [Thu, 10 Nov 2011 14:43:22 +0000 (09:43 -0500)]
README.md: Link to IPS

14 years agocore: Stub out a diff API and builtin
Colin Walters [Thu, 10 Nov 2011 14:27:22 +0000 (09:27 -0500)]
core: Stub out a diff API and builtin

14 years agoparallel-debian: Exclude plymouth
Colin Walters [Thu, 10 Nov 2011 13:36:21 +0000 (08:36 -0500)]
parallel-debian: Exclude plymouth

Otherwise the boot will stall if there's no plymouth in the
target image.

14 years agoparallel: Ensure we have some crucial subdirectories of /var
Colin Walters [Thu, 10 Nov 2011 13:32:55 +0000 (08:32 -0500)]
parallel: Ensure we have some crucial subdirectories of /var

Also move sysroot creation up a step - each commit is kind of
expensive at present.

14 years agoparallel-debian: Remove hack to remove FIFO
Colin Walters [Wed, 9 Nov 2011 15:02:06 +0000 (10:02 -0500)]
parallel-debian: Remove hack to remove FIFO

We now support named pipes.

14 years agocore: Support named pipes
Colin Walters [Wed, 9 Nov 2011 14:08:58 +0000 (09:08 -0500)]
core: Support named pipes

This is mainly useful for sysvinit's "/dev/initctl".

14 years agocore: Actually return an error from fsck
Colin Walters [Wed, 9 Nov 2011 13:27:47 +0000 (08:27 -0500)]
core: Actually return an error from fsck

And add some tests that fsck reports an error.

14 years agoREADME: Make package discussion more useful
Colin Walters [Wed, 9 Nov 2011 12:56:43 +0000 (07:56 -0500)]
README: Make package discussion more useful

14 years agoparallel-debian: Update to latest
Colin Walters [Wed, 9 Nov 2011 11:19:24 +0000 (06:19 -0500)]
parallel-debian: Update to latest

14 years agocore: Add ot_util_variant_take_ref for older GLib versions
Colin Walters [Wed, 9 Nov 2011 11:13:26 +0000 (06:13 -0500)]
core: Add ot_util_variant_take_ref for older GLib versions

14 years agocore: Add internal GFile implementation for reading commits
Colin Walters [Mon, 7 Nov 2011 16:25:49 +0000 (11:25 -0500)]
core: Add internal GFile implementation for reading commits

The data structures we use for reading already-written commits versus
building them don't need to be the same.  It's cleaner if we can have
generic code which operates on a GFile implementation for reads,
because then we can share more generic code for walking and operating
on filesystem trees via GIO.

14 years agocore: Squash a memory leak while reading gvariants
Colin Walters [Wed, 9 Nov 2011 11:06:33 +0000 (06:06 -0500)]
core: Squash a memory leak while reading gvariants

14 years agotests: Add OT_TEST_DEBUG environment variable
Colin Walters [Wed, 9 Nov 2011 10:28:13 +0000 (05:28 -0500)]
tests: Add OT_TEST_DEBUG environment variable

14 years agocore: Add public API to get the path for an object
Colin Walters [Wed, 9 Nov 2011 00:38:42 +0000 (19:38 -0500)]
core: Add public API to get the path for an object

14 years agocore: Add API for just effectively stat()ing packed files
Colin Walters [Wed, 9 Nov 2011 00:37:41 +0000 (19:37 -0500)]
core: Add API for just effectively stat()ing packed files

This will allow us to implement more of a VFS-like API on top.

14 years agocore: Remove old commit API
Colin Walters [Wed, 9 Nov 2011 00:25:23 +0000 (19:25 -0500)]
core: Remove old commit API

This eliminates more now-dead code.

14 years agocore: Remove old wrapper functions in import path
Colin Walters [Wed, 9 Nov 2011 00:23:04 +0000 (19:23 -0500)]
core: Remove old wrapper functions in import path

Just code cleanup.

14 years agocore: Use temp dir when creating GVariant metadata
Colin Walters [Tue, 8 Nov 2011 23:17:07 +0000 (18:17 -0500)]
core: Use temp dir when creating GVariant metadata

14 years agootutil: Add some more GIO helpers
Colin Walters [Tue, 8 Nov 2011 23:13:48 +0000 (18:13 -0500)]
otutil: Add some more GIO helpers

14 years agoinit: Add new explicit temporary directory
Colin Walters [Tue, 8 Nov 2011 23:13:05 +0000 (18:13 -0500)]
init: Add new explicit temporary directory

This will be used to store all tempoary files.

14 years agocommit: Drop the ability to --add --remove
Colin Walters [Tue, 8 Nov 2011 23:11:42 +0000 (18:11 -0500)]
commit: Drop the ability to --add --remove

This forces us to have two code paths for doing a commit; let's just
drop this ability for now since it's not very useful.

14 years agocore: Silence gcc -Wall compiler warnings
Colin Walters [Mon, 7 Nov 2011 17:30:32 +0000 (12:30 -0500)]
core: Silence gcc -Wall compiler warnings

14 years agocore: Store filenames in sorted order
Colin Walters [Mon, 7 Nov 2011 17:26:47 +0000 (12:26 -0500)]
core: Store filenames in sorted order

I believe GHashTable order was stable for a given set of names, but
this will make it more explicit, and also allow for binary searching.

14 years agocore: Add missing null terminator in option parsing
Colin Walters [Sun, 6 Nov 2011 21:25:45 +0000 (16:25 -0500)]
core: Add missing null terminator in option parsing

14 years agocore: Unify queryinfo flags such that we just use stat/readlink
Colin Walters [Sun, 6 Nov 2011 21:24:11 +0000 (16:24 -0500)]
core: Unify queryinfo flags such that we just use stat/readlink

14 years agoTODO: Update a bit
Colin Walters [Sun, 6 Nov 2011 21:23:58 +0000 (16:23 -0500)]
TODO: Update a bit

14 years agoparallel-debian: Port to latest ostree
Colin Walters [Sun, 6 Nov 2011 20:47:00 +0000 (15:47 -0500)]
parallel-debian: Port to latest ostree

14 years agocore: Misc bugfixes for commit
Colin Walters [Sun, 6 Nov 2011 19:53:34 +0000 (14:53 -0500)]
core: Misc bugfixes for commit

14 years agoReorder compose and pull tests
Colin Walters [Fri, 4 Nov 2011 20:14:12 +0000 (16:14 -0400)]
Reorder compose and pull tests

14 years agotests: A few more compose tests
Colin Walters [Fri, 4 Nov 2011 20:13:21 +0000 (16:13 -0400)]
tests: A few more compose tests

14 years agocore: Make compose commits contain metadata about their composition
Colin Walters [Fri, 4 Nov 2011 17:42:05 +0000 (13:42 -0400)]
core: Make compose commits contain metadata about their composition

This allows tracking of their history better.

14 years agocore: Support actually adding metadata to commits
Colin Walters [Fri, 4 Nov 2011 16:32:08 +0000 (12:32 -0400)]
core: Support actually adding metadata to commits

14 years agotests: Make GLib warnings fatal
Colin Walters [Fri, 4 Nov 2011 19:58:32 +0000 (15:58 -0400)]
tests: Make GLib warnings fatal

14 years agotests: Output errors to stderr, so they show up under "prove"
Colin Walters [Fri, 4 Nov 2011 16:31:40 +0000 (12:31 -0400)]
tests: Output errors to stderr, so they show up under "prove"

14 years agocompose: Squash a memory leak
Colin Walters [Fri, 4 Nov 2011 15:03:44 +0000 (11:03 -0400)]
compose: Squash a memory leak

14 years agocommit: Support reading current directory rather than requiring 'find'
Colin Walters [Fri, 4 Nov 2011 14:53:47 +0000 (10:53 -0400)]
commit: Support reading current directory rather than requiring 'find'

Implement 'find' internally.

14 years agoDelete link-file builtin - it's kind of pointless
Colin Walters [Fri, 4 Nov 2011 13:26:45 +0000 (09:26 -0400)]
Delete link-file builtin - it's kind of pointless

14 years agoparallel-debian: Update for ostree changes
Colin Walters [Fri, 4 Nov 2011 03:12:01 +0000 (23:12 -0400)]
parallel-debian: Update for ostree changes

14 years agocore: Take --repo as the first argument
Colin Walters [Fri, 4 Nov 2011 03:08:28 +0000 (23:08 -0400)]
core: Take --repo as the first argument

I kept doing this over and over...it feels more natural.  The "prefix"
thing was (almost) unused anyways, and it was easy enough to replace.

14 years agotests: Add some more tests of compose content
Colin Walters [Fri, 4 Nov 2011 02:35:42 +0000 (22:35 -0400)]
tests: Add some more tests of compose content

14 years agocore: Make compose its own builtin
Colin Walters [Fri, 4 Nov 2011 02:32:06 +0000 (22:32 -0400)]
core: Make compose its own builtin

This will allow more flexibility down the line.

14 years agocore: Add ostree checkout --compose
Colin Walters [Fri, 4 Nov 2011 01:50:00 +0000 (21:50 -0400)]
core: Add ostree checkout --compose

This allows merging e.g. multiple artifact trees into one big tree.

14 years agoSome work on ostree-build
Colin Walters [Thu, 3 Nov 2011 20:25:35 +0000 (16:25 -0400)]
Some work on ostree-build

14 years agoDe-recursify source tree
Colin Walters [Wed, 2 Nov 2011 19:45:32 +0000 (15:45 -0400)]
De-recursify source tree

14 years agocore: add ^ for rev-parse
Colin Walters [Wed, 2 Nov 2011 17:22:13 +0000 (13:22 -0400)]
core: add ^ for rev-parse

14 years agocore: remove stub http backend for now
Colin Walters [Wed, 2 Nov 2011 16:43:25 +0000 (12:43 -0400)]
core: remove stub http backend for now

The plain http pull is probably good enough.

14 years agopull: Properly clean up after test
Colin Walters [Tue, 1 Nov 2011 16:35:50 +0000 (12:35 -0400)]
pull: Properly clean up after test

14 years agolog: Fix a crash
Colin Walters [Tue, 1 Nov 2011 16:24:34 +0000 (12:24 -0400)]
log: Fix a crash

14 years agocore: Squash some memory leaks
Colin Walters [Tue, 1 Nov 2011 16:20:33 +0000 (12:20 -0400)]
core: Squash some memory leaks

14 years agoFor archive checkouts, actually unpack the packfiles
Colin Walters [Tue, 1 Nov 2011 14:59:07 +0000 (10:59 -0400)]
For archive checkouts, actually unpack the packfiles

14 years agomisc test fixes
Colin Walters [Tue, 1 Nov 2011 12:49:01 +0000 (08:49 -0400)]
misc test fixes

14 years agoConsolidate tests
Colin Walters [Tue, 1 Nov 2011 02:42:14 +0000 (22:42 -0400)]
Consolidate tests

Rather than having a ton of separate tests, be like git and have
a "basic" test that does a lot of the, well, basics.

14 years agoSwitch to big-endian storage for all variant data
Colin Walters [Tue, 1 Nov 2011 02:41:50 +0000 (22:41 -0400)]
Switch to big-endian storage for all variant data

This ensures the saved archives are architecture-independent.

14 years agoAdd support for pulling from remote archives
Colin Walters [Tue, 1 Nov 2011 00:24:38 +0000 (20:24 -0400)]
Add support for pulling from remote archives

This necessitated a large set of changes.

We now support an "archive" mode for repositories.  In this mode,
files are stored "packed" rather than hard linked.  This allows one to
e.g. store an OSTree repository with root-owned files as non-root.  It
is also used as the basis for serving repositories via HTTP.

While doing this I realized that GVariant is endianness-dependent; I
decided to just store all data in big endian.

14 years agoparallel-debian: Add .gitignore
Colin Walters [Tue, 1 Nov 2011 00:22:53 +0000 (20:22 -0400)]
parallel-debian: Add .gitignore

14 years agocheckout: Use ot_util_new_file_for_path
Colin Walters [Tue, 1 Nov 2011 00:22:34 +0000 (20:22 -0400)]
checkout: Use ot_util_new_file_for_path

14 years agoostree-http-server: Exit when our directory goes away
Colin Walters [Fri, 28 Oct 2011 20:56:50 +0000 (16:56 -0400)]
ostree-http-server: Exit when our directory goes away

14 years agoostree-http-server: New simple HTTP server for tests
Colin Walters [Fri, 28 Oct 2011 20:26:37 +0000 (16:26 -0400)]
ostree-http-server: New simple HTTP server for tests

14 years agocore: Add "ostree remote add"
Colin Walters [Fri, 28 Oct 2011 14:25:36 +0000 (10:25 -0400)]
core: Add "ostree remote add"

14 years agoDon't default to "master", require a branch
Colin Walters [Fri, 28 Oct 2011 01:40:42 +0000 (21:40 -0400)]
Don't default to "master", require a branch

It doesn't really make sense to have a default branch, since we expect
people to have multiple roots.  Thus, require a branch
specification always.

14 years agoimage: Add /sysroot as a toplevel bind mount to the real root
Colin Walters [Thu, 27 Oct 2011 20:59:01 +0000 (16:59 -0400)]
image: Add /sysroot as a toplevel bind mount to the real root

This allows tools to see and operate on the "real" root conveniently;
for example, ostree clearly needs to operate on /ostree/repo.

14 years agoimage: Use rev-parse, not HEAD
Colin Walters [Thu, 27 Oct 2011 19:44:21 +0000 (15:44 -0400)]
image: Use rev-parse, not HEAD

14 years agocore: Add rev-parse builtin
Colin Walters [Thu, 27 Oct 2011 19:44:08 +0000 (15:44 -0400)]
core: Add rev-parse builtin

14 years agofsck: Kill unused variable
Colin Walters [Thu, 27 Oct 2011 19:41:15 +0000 (15:41 -0400)]
fsck: Kill unused variable

14 years agocore: remove HEAD file, use branches instead
Colin Walters [Thu, 27 Oct 2011 13:21:07 +0000 (09:21 -0400)]
core: remove HEAD file, use branches instead

HEAD in git describes a working copy, and we don't have those.
Instead, default to a "master" branch.  This also lets us support
multiple branches.

14 years agorun.sh: Don't use grubby here either
Colin Walters [Thu, 27 Oct 2011 17:02:01 +0000 (13:02 -0400)]
run.sh: Don't use grubby here either

14 years agognomeos-make-image.sh: Some more sanity checks, and don't use grubby
Colin Walters [Thu, 27 Oct 2011 15:15:13 +0000 (11:15 -0400)]
gnomeos-make-image.sh: Some more sanity checks, and don't use grubby

grubby --default-kernel fails on F16; let's just use uname -r which
matches dracut anyways.

14 years agoinit: Add branches, tags, refs directories like git
Colin Walters [Thu, 27 Oct 2011 02:37:23 +0000 (22:37 -0400)]
init: Add branches, tags, refs directories like git

14 years agocore: Add a config file with repo version
Colin Walters [Thu, 27 Oct 2011 02:21:00 +0000 (22:21 -0400)]
core: Add a config file with repo version

This should let us expand later.

14 years agoTODO: Some updates
Colin Walters [Thu, 27 Oct 2011 02:19:46 +0000 (22:19 -0400)]
TODO: Some updates

14 years agoparallel-debian: Rework scripts to not use loopback mounts
Colin Walters [Wed, 26 Oct 2011 22:42:55 +0000 (18:42 -0400)]
parallel-debian: Rework scripts to not use loopback mounts

It's not necessary and adds a lot of overhead for the build. Instead,
just dynamically make an ext4 image of the fs when booting in QEMU.

14 years agocore: Fix checksum for symlinks walking off into uninitialized memory
Colin Walters [Wed, 26 Oct 2011 22:33:33 +0000 (18:33 -0400)]
core: Fix checksum for symlinks walking off into uninitialized memory

14 years agoparallel-debian: Add install and run scripts
Colin Walters [Wed, 26 Oct 2011 21:16:46 +0000 (17:16 -0400)]
parallel-debian: Add install and run scripts

14 years agognomeos-make-image.sh: Don't copy kernel
Colin Walters [Wed, 26 Oct 2011 20:33:11 +0000 (16:33 -0400)]
gnomeos-make-image.sh: Don't copy kernel

There's no point.

14 years agognomeos-make-image.sh: Take care of downloading and patching dracut
Colin Walters [Wed, 26 Oct 2011 19:00:04 +0000 (15:00 -0400)]
gnomeos-make-image.sh: Take care of downloading and patching dracut

14 years agognomeos-make-image.sh: Check for some dependencies before we run
Colin Walters [Wed, 26 Oct 2011 18:59:45 +0000 (14:59 -0400)]
gnomeos-make-image.sh: Check for some dependencies before we run

14 years agoOne more missing substitution for previous commit
Colin Walters [Wed, 26 Oct 2011 18:43:50 +0000 (14:43 -0400)]
One more missing substitution for previous commit

14 years agognomeos-make-image.sh: Support out of tree ostree
Colin Walters [Wed, 26 Oct 2011 18:42:58 +0000 (14:42 -0400)]
gnomeos-make-image.sh: Support out of tree ostree

14 years agoAdd Makefile for ostree_switch_root
Colin Walters [Wed, 26 Oct 2011 18:40:36 +0000 (14:40 -0400)]
Add Makefile for ostree_switch_root

14 years agoDrop glib requrirement to 2.28
Colin Walters [Wed, 26 Oct 2011 18:10:20 +0000 (14:10 -0400)]
Drop glib requrirement to 2.28

This lets it build on more currently-released systems like Fedora 15.

14 years agoconfigure: Use AC_PROG_LIBTOOL
Colin Walters [Wed, 26 Oct 2011 17:52:42 +0000 (13:52 -0400)]
configure: Use AC_PROG_LIBTOOL

This apparently helps autoreconf know we're using libtool.

14 years agodebian-setup.sh: I can log in now
Colin Walters [Wed, 26 Oct 2011 17:14:05 +0000 (13:14 -0400)]
debian-setup.sh: I can log in now

14 years agoPile of work on parallel-debian
Colin Walters [Tue, 25 Oct 2011 02:02:16 +0000 (22:02 -0400)]
Pile of work on parallel-debian

14 years agoconfigure: make missing prototypes an error always
Colin Walters [Fri, 21 Oct 2011 15:27:40 +0000 (11:27 -0400)]
configure: make missing prototypes an error always